package com.mes.biz.mapper;

import com.mes.biz.domain.BizProductionProcess;
import com.mes.biz.domain.vo.ProcessCompletionVo;
import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizProductProcessPlan;

import java.util.List;

/**
 * 产品工序计划Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-05-03
 */
public interface BizProductProcessPlanMapper extends BaseMapper<BizProductProcessPlan>
{

    /**
     * 批量删除产品工序计划
     * @param ids 需要删除的产品工序计划ID集合
     * @return
     */
    public int deleteBizProductProcessPlanByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);


    void deleteByProcessPlanId(@Param("processPlanId") String processPlanId, @Param("DEL_FLAG_DELETE") String delFlagDelete);

    void saveBatch(List<BizProductProcessPlan> bizProductProcessPlanList);

    void deleteByProductId(@Param("productId") String productId, @Param("DEL_FLAG_DELETE") String delFlagDelete);

    List<BizProductProcessPlan> getBizProductProcessPlanByProductId(@Param("productId") String productId);

    List<BizProductionProcess> getCompletionByProductId(@Param("productId") String productId);
}
